package com.example.monitoringsystem.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.monitoringsystem.bean.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.sql.Wrapper;
import java.util.List;


@Mapper
public interface PatientMapper extends BaseMapper<Patient> {
//    private Integer id;
//    private String username;
//    private String password;
//    private String email;
//    private char gender;
//    private int doctor;
//    private String prescription;
    //查
//@Select("select * from user ${ew.customSqlSegment}")
//    @Select("select * from patient ${ew.customSqlSegment}")
//    Patient selectUsers(@Param(Constants.WRAPPER)Wrapper queryWrapper);
//    //查询用户的所有信息
//    @Select("select * from patient ${ew.customSqlSegment}")
//    List<Patient> showinformation(@Param(Constants.WRAPPER) Wrapper ew);
//    //更改用户信息
//    @Update("update patient set ${ew.sqlSet} ${ew.customSqlSegment}")
//    void upateStu(@Param(Constants.WRAPPER) UpdateWrapper<Object> ew);

    ////    Integer Id(@Param("id")Integer id);
//   String  updatePassword(@Param("password") String password);
////    String getEmail(@Param("email")String  email);
////    char getGender(@Param("gender") char gender);
//     int updatedocotor(@Param("doctor") int doctor);
//    String  updatePrescription(@Param("prescription") String  prescription);

//    long reg(Patient patient);
//
//    int updateUserEmail(@Param("email") String email, @Param("id") Integer id);
//
////    List<> getUserByNickname(@Param("nickname") String nickname);
////
////    List<Role> getAllRole();
//
//    int updateUserEnabled(@Param("enabled") Boolean enabled, @Param("uid") Long uid);
//
//    int deleteUserById(Long uid);
//
//    int deleteUserRolesByUid(Long id);
//
//    int setUserRoles(@Param("rids") Long[] rids, @Param("id") Long id);
//
//    User getUserById(@Param("id") Long id);
}
